<?php

namespace app\health\model;

use think\Model;
use think\model\relation\BelongsTo;

class HealthGoodsAccess extends Model
{
    protected $name = 'health_goods_access';

    /**
     * 关联商品信息
     * @return BelongsTo
     */
    public function goods(): BelongsTo
    {
        return $this->belongsTo(HealthGoods::class, 'goods_id');
    }
}